package com.ruoyi.match.service;

import java.util.List;
import com.ruoyi.match.domain.MemberTeam;

/**
 * 队员队伍Service接口
 * 
 * @author zhangrui
 * @date 2025-03-26
 */
public interface IMemberTeamService 
{
    /**
     * 查询队员队伍
     * 
     * @param userId 队员队伍主键
     * @return 队员队伍
     */
    public MemberTeam selectMemberTeamByUserId(Long userId);

    /**
     * 查询队员队伍列表
     * 
     * @param memberTeam 队员队伍
     * @return 队员队伍集合
     */
    public List<MemberTeam> selectMemberTeamList(MemberTeam memberTeam);

    /**
     * 新增队员队伍
     * 
     * @param memberTeam 队员队伍
     * @return 结果
     */
    public int insertMemberTeam(MemberTeam memberTeam);

    /**
     * 修改队员队伍
     * 
     * @param memberTeam 队员队伍
     * @return 结果
     */
    public int updateMemberTeam(MemberTeam memberTeam);

    /**
     * 批量删除队员队伍
     * 
     * @param userIds 需要删除的队员队伍主键集合
     * @return 结果
     */
    public int deleteMemberTeamByUserIds(Long[] userIds);

    /**
     * 删除队员队伍信息
     * 
     * @param userId 队员队伍主键
     * @return 结果
     */
    public int deleteMemberTeamByUserId(Long userId);



    //    用户自己退出队伍
    public int leaveTeam(Long userId, Long teamId);

    //踢出成员
    int removeMember(MemberTeam memberTeam);
}
